package day01;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Team05 {
    public static void main(String[] args) {
        // 获得毫秒数
       Long time = System.currentTimeMillis();
        System.out.println(time);
        // 格式化时间
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time1 = format.format(time);
        System.out.println(time1);



    }
}
